package parkshop.pmcourse.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import parkshop.pmcourse.domain.Shop;
import parkshop.pmcourse.mapping.ShopMapper;
import parkshop.pmcourse.service.ShopService;

@Service
public class ShopServiceImpl implements ShopService {

	@Autowired
	private ShopMapper shopMapper;
	
	@Override
	public Shop getShopById(Long id) {
		return shopMapper.selectByPrimaryKey(id);
	}

	@Override
	public Shop getShopByShopOwnId(Long id) {
		return shopMapper.selectByShopOwnerId(id);
	}

}
